package com.chixing.day09_innerclass.order;

public class EnterpriseOrder extends Order{
    public EnterpriseOrder() {
    }

    public EnterpriseOrder(int orderNo, String ownerName, float orderPrice, int productCount, String orderCreateDate) {
        super(orderNo, ownerName, orderPrice, productCount, orderCreateDate);
    }

    @Override
    public Order Orderclone() {
        EnterpriseOrder subOrder = new EnterpriseOrder() ;
        subOrder.setOrderNo(this.getOrderNo());
        subOrder.setOwnerName(this.getOwnerName());
        subOrder.setOrderPrice(this.getOrderPrice());
        subOrder.setOrderCreateDate(this.getOrderCreateDate());
        return subOrder;

    }
}
